import { Controller, Get, Post } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  @Post('upload')
  async fileUpload() {
    console.log('fetch upload request');
    const result = await this.appService.saveFile();
    return result;
  }
}
